package com.nervenets.web.hibernate.domain.ad;

import com.nervenets.web.enumeration.AdType;
import com.nervenets.web.hibernate.DomainObject;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Ad extends DomainObject {
    @ApiModelProperty(value = "广告类型")
    private AdType adType;
    @ApiModelProperty(value = "广告标题")
    private String title;
    @ApiModelProperty(value = "广告图片")
    private String picture;
    @ApiModelProperty(value = "广告链接")
    private String url;
    @ApiModelProperty(value = "排序值")
    private int queue;
    @ApiModelProperty(value = "是否启用")
    private boolean enable;
}
